﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel.Models
{
    public class SubjectComparer : IEqualityComparer<Subject>
    {
        public bool Equals(Subject x, Subject y)
        {
            if (x.fullName == y.fullName) return true;
            else return false;
        }

        public int GetHashCode(Subject obj)
        {
            return obj.GetHashCode();
        }
    }
}
